package com.jman.register.clients;

import com.jman.register.domain.User;
import com.jman.register.dto.Result;
import com.jman.register.dto.UserWithToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("userservice")
public interface UserClients {
    @PostMapping("/user/save")
    UserWithToken saveUser(@RequestBody User user);
}